package weeklyreport

class LoginTagLib {
	
	def loginControl = {
		if(session.user) {
			out << "${session.user.name} "
			out << "[${link(action:'logout', controller:'user'){'注销'}}]"
		} else {
			out << "[${link(action:'login', controller:'user'){'登录'}}]"
		}
	}
}
